package com.itheima.controller;

/**
 * ClassName: Result
 * Package: com.itheima.controller
 * Description:
 *
 * @Auther gongkaiming
 * @Create 2024/11/28 22:56
 * @Version 1.0
 */
public class Result {

    private Object data;

    private Integer code;

    private String message;

    public Result() {
    }

    public Result(Integer code, Object data) {
        this.data = data;
        this.code = code;
    }

    public Result(Integer code, Object data, String message) {
        this.data = data;
        this.code = code;
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
